package com.ruoyi.travel.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.travel.domain.TravelBanner;
import com.ruoyi.travel.mapper.TravelBannerMapper;
import com.ruoyi.travel.service.ITravelBannerService;

/**
 * 轮播图Service业务层处理
 * 
 * @author ruoyi
 */
@Service
public class TravelBannerServiceImpl implements ITravelBannerService
{
    @Autowired
    private TravelBannerMapper travelBannerMapper;

    @Override
    public TravelBanner selectTravelBannerById(Long bannerId)
    {
        return travelBannerMapper.selectTravelBannerById(bannerId);
    }

    @Override
    public List<TravelBanner> selectTravelBannerList(TravelBanner travelBanner)
    {
        return travelBannerMapper.selectTravelBannerList(travelBanner);
    }

    @Override
    public int insertTravelBanner(TravelBanner travelBanner)
    {
        return travelBannerMapper.insertTravelBanner(travelBanner);
    }

    @Override
    public int updateTravelBanner(TravelBanner travelBanner)
    {
        return travelBannerMapper.updateTravelBanner(travelBanner);
    }

    @Override
    public int deleteTravelBannerById(Long bannerId)
    {
        return travelBannerMapper.deleteTravelBannerById(bannerId);
    }

    @Override
    public int deleteTravelBannerByIds(Long[] bannerIds)
    {
        return travelBannerMapper.deleteTravelBannerByIds(bannerIds);
    }
}

